home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Light ROM 1
/
LIGHT-ROM 1 (Amiga Library Services)(1994).iso
/
ffdisks
/
d897.lha
/
EPP
/
PModules
/
listAppend.e
< prev
next >
Wrap
Text File
|
1993-06-26
|
475b
|
22 lines
OPT TURBO
PROC listAppend (theElement, theList)
DEF listCurrent
/* NOTE: both theElement and theList must be passed by reference. */
/* Appends theElement onto the end of theList. */
listCurrent := ^theList
WHILE Next (listCurrent) <> NIL
listCurrent := Next (listCurrent)
ENDWHILE
IF ^theList = NIL
^theList := ^theElement
ELSE
Link (listCurrent, ^theElement)
ENDIF
^theElement := NIL
ENDPROC TRUE
/* listAppend */